import request from '@/utils/request'

export function reqLogin(obj) {
  return request({
    method: 'post',
    url: '/sys/login',
    data: obj
  })
}
/**
 * 获取用户基本资料(需要token)
 */
export const reqGetProfile = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 *获取员工头像带id
 */
export const reqGetBaseInfo = (id) => {
  return request({
    method: 'get',
    url: `/sys/user/${id}`
  })
}
